package com.artezio.vacation.service;

import com.artezio.vacation.dao.hibernate.user.UserHibernateDAO;
import com.artezio.vacation.domain.User;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * Service for blablabla users
 */
@Service
public class UserService {

    public static final Logger LOGGER = Logger.getLogger(UserService.class);

    @Autowired
    private UserHibernateDAO userDAO;

    public User findUserByEmail(String email) {
        return this.userDAO.findUserByEmail(email);
    }

    public List<User> getAllUsers() {
        return this.userDAO.getAllUsers();
    }

    public List<User> findUsersById(Set<Long> ids) {
        return this.userDAO.findUsersById(ids);
    }
}
